package com.letv.core.bean;

import java.util.LinkedList;
import java.util.List;

import com.letv.core.bean.LetvBaseBean;

public class CommentBean implements LetvBaseBean {
	
	private static final long serialVersionUID = 1L;

	public String _id; //评论唯一标示
	
	public String content; //评论内容
	
	public String vtime; //评论格式化时间,例：2天以前
	
	public long ctime; //评论时间戳,例：1395651822
	
	public String city; //评论地区
	
	public int replynum; //评论回复数量
	
	public int share; //评论分享数
	
	public int like; //评论喜欢数
	
	public boolean img; //评论图片, 有图片时为图片地址
	
	public List<String> imgPack; //评论图片格式集合 o:为原始图 180为180尺寸
	
	public int htime; //播放记录时间"htime": 0
	
	public String pid; //专辑Id
	
	public String xid; //视频Id
	
	public String cid; //频道Id,例：电影：1
	
	public String title; //视频Title:"《我是歌手》20140307：韩磊玩转摇滚茜拉变粉丝 动力火车经典老歌全场大合唱"
	
	public int flag; //是否通过审核，1 未通过 | 0 通过
	
	public boolean isLike; //是否喜欢评论
	
	public User user;
	
	public Source source;
	
	public LinkedList<ReplyBean> replys; //默认展示的三条评论
	
	public boolean isExpend = false; //该字段非接口返回字段，标示回复是否被展开更多回复
	
	public int level;
	
	public static class COMMENT_LEVEL{
		public final static int NORMAL = 0;
		public final static int JINHUA = 1;
		public final static int SHENPING = 2;
	}
	
	/**
	 * 评论的用户信息
	 * @author ljnalex
	 */
	public static class User {
		
		public String uid; //发表评论用户Id
		
		public String ssouid;
		
		public String username; //用户名
		
		public String photo; //用户头像
		
		public int isvip; //vip
		
	}

	/**
	 * 来源信息，id表示来源编号 detail表示展示文案，link表示扩展跳转地址（暂时忽略
	 * @author ljnalex
	 */
	public static class Source {
		
		public String link; //扩展跳转地址（暂时忽略）
		
		public int id; //来源编号
		
		public String detail; //展示文案
		
	}
	
	@Override
	public String toString() {
		return "LetvUser [_id=" + _id + ", content=" + content + ", vtime="
				+ vtime + ", ctime=" + ctime + ", city=" + city + ", replynum="
				+ replynum + ", share=" + share + ", like="
				+ like + ", img=" + img + ", htime="
				+ htime + ", pid=" + pid + ", xid="
				+ xid + ", cid=" + cid + ", title=" + title + "]";
	}
}
